package com.sumainfor.pc.market.fallback;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.feign.GetUserInfoFeign;
import org.springframework.stereotype.Component;

import java.util.Collection;

/**
 * @Author PuaChen
 * @Create 2018-11-08 15:43
 */
@Component
public class GetUserInfoFallback implements GetUserInfoFeign {


    @Override
    public String getnamebyid(String id) {
        return null;
    }

    @Override
    public JsonResult getUserInfo(Collection<String> ids) {
        return JsonResult.error("服务繁忙");
    }

    @Override
    public JsonResult getCenterServiceInfo(String userId) {
        return JsonResult.error("服务繁忙");
    }
}
